package com.zhx.sweet.handler;

import org.springframework.security.core.Authentication;
import org.springframework.security.oauth2.common.OAuth2AccessToken;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author zhanghaixuan
 * @create 2018/4/18-上午11:09
 **/
public interface CuestomAuthentionSuccessHandler {

    void onAuthenticationSuccess(OAuth2AccessToken accessToken, HttpServletRequest request, HttpServletResponse httpServletResponse, Authentication authentication) throws IOException;

}
